package com.yfp.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.client.domain.EnterpriseOrderDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【enterprise_order_details(企业订单明细)】的数据库操作Mapper
* @createDate 2024-08-10 09:43:43
* @Entity com.yfp.group.domain.EnterpriseOrderDetails
*/
public interface EnterpriseOrderDetailsMapper extends BaseMapper<EnterpriseOrderDetails> {
    /**
     * 根据订单编号查询详情
     * @param enterpriseOrderSn
     * @return
     */
    List<EnterpriseOrderDetails> findByEnterpriseOrderSn(String enterpriseOrderSn);

    /**
     * 减去领取套餐数
     * @param id
     * @param comboNum
     */
    void subtractComboSurplusNum(@Param("id") Long id,@Param("comboNum") Integer comboNum);

}




